package com.ruoyi.app.zzq.controller;

import com.ruoyi.app.zzq.service.QuitService;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/quit")
public class QuitController  extends BaseController {
    @Autowired
    private QuitService quitService;
    @ApiOperation("退出登录")
    @GetMapping(value = "/logoff")
    public AjaxResult LogOff()
    {
        return AjaxResult.success(quitService.LogOff());
    }
}
